<?php
if(!defined('PATH_KEINOS_FUNCTIONS')) { die('<p>Constans \'PATH_KEINOS_FUNCTIONS\' must be set to call the KEINOS functions.</p>'); }

/**
 * 環境設定
 *
 * この環境変数を変更したら、再セットアップしてください。
 * 暫定的に変える場合は initialize.inc 内の環境変数をunserializeでセットしている後に追記してください。
 */
$aKEINOS_ENVIRONMENT['data_dir']     = "_data";
$aKEINOS_ENVIRONMENT['template_dir'] = "_template";
$aKEINOS_ENVIRONMENT['compile_dir']  = "_compile";
$aKEINOS_ENVIRONMENT['cache_dir']    = "_cache";
$aKEINOS_ENVIRONMENT['debug_mode']   = FALSE;

/**
 * -----------------------------------
 *  以下自動処理
 * -----------------------------------
 */

if (substr(PHP_OS, 0, 3) == 'WIN') {
    $aKEINOS_ENVIRONMENT['IS_WINDOWS'] = TRUE;
    $aKEINOS_ENVIRONMENT['IS_UNIX']    = FALSE;
} else {
    $aKEINOS_ENVIRONMENT['IS_WINDOWS'] = FALSE;
    $aKEINOS_ENVIRONMENT['IS_UNIX']    = TRUE;
}

$aRealPath['lib_dir']        = PATH_ROOT_LIB;
$aRealPath['keinos_lib_dir'] = PATH_KEINOS_FUNCTIONS;
$aRealPath['data_dir']       = PATH_KEINOS_FUNCTIONS . $aKEINOS_ENVIRONMENT['data_dir']     . DIRECTORY_SEPARATOR;
$aRealPath['template_dir']   = PATH_KEINOS_FUNCTIONS . $aKEINOS_ENVIRONMENT['template_dir'] . DIRECTORY_SEPARATOR;
$aRealPath['compile_dir']    = PATH_KEINOS_FUNCTIONS . $aKEINOS_ENVIRONMENT['compile_dir']  . DIRECTORY_SEPARATOR;
$aRealPath['cache_dir']      = PATH_KEINOS_FUNCTIONS . $aKEINOS_ENVIRONMENT['cache_dir']    . DIRECTORY_SEPARATOR;


?>